Skip to content

Conversation

@YasenT
Copy link
Contributor

@YasenT YasenT commented Sep 23, 2025

Extending the rpm uploads to use synchronous endpoint

@YasenT YasenT marked this pull request as draft September 23, 2025 10:52
@YasenT
Copy link
Contributor Author

YasenT commented Sep 23, 2025

/retest

@YasenT YasenT marked this pull request as ready for review October 16, 2025 14:34
@YasenT
Copy link
Contributor Author

YasenT commented Oct 16, 2025

/retest

@YasenT
Copy link
Contributor Author

YasenT commented Oct 17, 2025

/retest


# For rpm plugin >= 3.32.5, use synchronous upload endpoint when no repository is provided
# For older versions, always use the create endpoint (backward compatibility)
if repository is None and self.pulp_ctx.has_plugin(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is in common-context and be called with any kind-of PulpRepositoryContext. All you're checking here is that the pulp-instance being talked-to has rpm>=3.32.5. What if I'm invoking this from, say, pulp python content upload? You need to check the kind-of RepositoryContext to see that it's for a plugin that supports the new call in addition to making sure that plugin is the right version or higher.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So from all the plugins, just 2x had issues
pulp-file, which doesn't seem to support the synchronous uploads, so i am overwriting this context in the file context.
And rpm which had an issue, which is resolved in the latest version of the plugin
The rest are passing the tests just fine, their synchronous implementations seems to be older and working as expected with the updated context.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A note, the one not passing it's test is exactly the rpm one, in nightly, which is the most confusing part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants